#ifndef _I386_CPU_H
#define _I386_CPU_H

#include <stdint.h>

void cpu_lazy();
void cpu_idle();

static inline void cpu_pause(void)
{
	__asm__ __volatile__ ("pause");
}

static inline void cpu_get_cpuid(unsigned int mop,unsigned int sop,unsigned int * a,unsigned int * b,unsigned int * c,unsigned int * d)
{
	__asm__ __volatile__ (
        "cpuid	\n\t"
        :"=a"(*a),"=b"(*b),"=c"(*c),"=d"(*d)
        :"0"(mop),"2"(sop)
    );
}

#endif  /* _I386_CPU_H */
